﻿using Microsoft.Extensions.DependencyInjection;

namespace Fast
{
    /// <summary>
    /// 代理服务扩展类
    /// </summary>
    [SkipScan]
    public static class DispatchProxyFastApplicationExtensions
    {
        /// <summary>
        /// 添加动态代理
        /// </summary>
        /// <param name="application"></param>
        public static IFastApplication AddDynamicProxy(this IFastApplication application)
        {
            application.Services.AddDynamicProxy();

            return application;
        }
    }
}
